<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<table class="layui-table">
          <colgroup>
            <col width="80">
            <col width="350">
            <col width="100">
            <col width="200">
            <col>
          </colgroup>
          <thead>
            <tr>
              <th style="text-align: center;">ID</th>
              <th style="text-align: center;">标题</th>
              <th style="text-align: center;">点击量</th>
              <th style="text-align: center;">发布时间</th>
              <th style="text-align: center;">操作</th>
            </tr>
          </thead>
          <tbody>
            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$mfiles): $mod = ($i % 2 );++$i;?><tr>
              <td style="text-align: center;"><?php echo ($mfiles['id']); ?></td>
              <td><a href=""><?php echo ($mfiles['title']); ?></a></td>
              <td style="text-align: center;"><?php echo ($mfiles['hits']); ?></td>
              <td align="center"><?php echo (date("Y-m-d H:i:s",$mfiles['addtime'])); ?></td>
              <td align="center">
                  <a onclick="openurl('<?php echo ($tablename); ?>','<?php echo ($mfiles['id']); ?>')" class="layui-btn layui-btn-small layui-btn-normal">移动</a>
                  <a href="/admin/content/edit/tablename/<?php echo ($tablename); ?>/id/<?php echo ($mfiles['id']); ?>" class="layui-btn layui-btn-small layui-btn-danger" target="_blank">编辑</a>
                  <a href="/admin/content/del/tablename/<?php echo ($tablename); ?>/id/<?php echo ($mfiles['id']); ?>" class="layui-btn layui-btn-small">删除</a>
              </td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
          </tbody>
        </table>
</body>
</html>